//
//  WHStatusRetweetedView.swift
//  WHSinaWeiBo
//
//  Created by 王寒 on 16/4/13.
//  Copyright © 2016年 wanghan. All rights reserved.
//

import UIKit

class WHStatusRetweetedView: UIView {

    var statusViewModel: WHStatusViewModel?{
        didSet{
            contentLabel.text = statusViewModel?.status?.retweeted_status?.text
            
        }
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        steupUI()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    private func steupUI(){
        backgroundColor = UIColor(white: 0.9, alpha: 1)
        addSubview(contentLabel)
        contentLabel.snp_makeConstraints { (make) -> Void in
            make.top.left.equalTo(self).offset(StatusCellMargin)
        }
        
        self.snp_makeConstraints { (make) -> Void in
            make.bottom.equalTo(contentLabel.snp_bottom).offset(StatusCellMargin)
        }
        
    }
    
    
    private lazy var contentLabel: UILabel = UILabel(text: "我是转发微博", textColor: UIColor.darkGrayColor(), fontSize: 15,margin: StatusCellMargin)
}
